package req

/**
* 采用gin内置验证组件文档如下
	https://pkg.go.dev/github.com/go-playground/validator/v10#readme-baked-in-validations
	https://pkg.go.dev/github.com/go-playground/validator/v10#pkg-overview
*/
type ExampleUserReq struct {
	Name     string `json:"name" binding:"required,alphanumunicode" form:"name"`
	Email    string `json:"email" binding:"required,email" form:"email"`
	Password string `json:"password" binding:"required,min=6,alphanum" form:"password"`
	Birthday string `json:"birthday" binding:"required,datetime=2006-01-02" form:"birthday"`
	Role     uint16 `json:"role" binding:"gte=1,lte=130" form:"role"`
}
